package com.verification.custom;

import java.lang.annotation.ElementType;  
import java.lang.annotation.Retention;  
import java.lang.annotation.RetentionPolicy;  
import java.lang.annotation.Target;  
   
import javax.validation.Constraint;  
import javax.validation.Payload;  
   
   
@Target({ElementType.FIELD, ElementType.METHOD})  
@Retention(RetentionPolicy.RUNTIME)  
@Constraint(validatedBy=InspectorValidator.class)  
public @interface Inspector {  
	public abstract int length() default 0;

	public abstract int max() default 0;
	
	public abstract int min() default 0;
	
	public abstract int maxLength() default 0;
	
	public abstract int minLength() default 0;
	
	public abstract String reg() default "";
	
	public abstract String enumeration() default"";
	
	public abstract boolean isDate() default false;
	
    String message() default "校验错误";  
     
    Class<?>[] groups() default {};  
     
    Class<? extends Payload>[] payload() default {};  
   
}  